<template>
  <section class="goods-shop" v-if="showGoodsShopEntry" :style="outModuleCss">
    <div :style="moduleBgCss" class="module-bg"></div>
    <section class="shop-section">
      <div class="shop-info">
        <div class="info-box">
          <div class="shop-img"></div>
          <div class="detail-box">
            <p class="shop-name">飞利浦播放器</p>
            <p class="shop-focus">1.2万人关注</p>
          </div>
        </div>
        <i class="iconfont icon-arrow-right"></i>
      </div>
      <div class="btn-group">
        <div class="btn-item">
          <i class="iconfont icon-all"></i>
          <span>精选商品</span>
        </div>
        <div class="btn-item">
          <i class="iconfont icon-store"></i>
          <span>进店逛逛</span>
        </div>
      </div>
    </section>
  </section>
</template>

<script>
import { mixinsModuleCss } from "@/components/DiyNew/diy/mixins/index.js";

export default {
  name: "",
  props: {
    propsData: {
      type: Object,
      default: {},
    },
  },
  mixins: [mixinsModuleCss],
  components: {},
  data() {
    return {};
  },
  mounted() {},
  watch: {},
  computed: {
    showGoodsShopEntry() {
      return this.propsData.params.showGoodsShopEntry;
    },
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.goods-shop {
  width: 100%;
  position: relative;
  font-family: PingFang SC;
  .shop-section {
    width: 100%;
    padding: 20px 18px;
    .shop-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      .info-box {
        display: flex;
        align-items: center;
        .shop-img {
          width: 50px;
          height: 50px;
          background: #ffffff;
          border: 1px solid #f6f6f6;
          border-radius: 4px;
          margin-right: 10px;
        }
        .detail-box {
          display: flex;
          flex-direction: column;
          .shop-name {
            font-size: 13px;
            font-weight: 600;
            color: #262626;
          }
          .shop-focus {
            font-size: 11px;
            font-weight: 400;
            color: #8c8c8c;
            margin-top: 10px;
          }
          p {
            margin-bottom: 0;
          }
        }
      }
      .iconfont {
        color: #000000;
        font-size: 18px;
      }
    }
    .btn-group {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 14px;
      .btn-item {
        width: 100px;
        height: 30px;
        background: #ffffff;
        border: 1px solid #9b9b9b;
        border-radius: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #262626;
        .iconfont {
          font-size: 17px;
          margin-right: 2px;
        }
        span {
          font-size: 12px;
          font-weight: 400;
        }
      }
      .btn-item:first-child {
        margin-right: 17px;
      }
    }
  }
  .module-bg {
    width: 100%;
    height: 100%;
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
  }
}
</style>
